#include("/include/pageForm.html",action="admin/clearing/monitor/search")

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="admin/clearing/monitor/search" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>日切日期：</label>
				<input type="text" id="settleDate" name="settleDate" value="#(settleDate)" class="date textInput readonly valid" datefmt="yyyy-MM-dd"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			#auth()
				<li><a class="add" href="admin/clearing/monitor/createMonitor?settleDate={settleDate}"  target="ajaxTodo" title="确定要生成监听数据吗？"><span>生成</span></a></li>
			#end
			#auth()
				<li><a class="edit" href="admin/clearing/monitor/getData?id={id}" target="ajaxTodo" title="确定要获取数据吗？"><span>获取</span></a></li>
			#end
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" style="width:98%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="100">日切日期</th>
				<th width="100">渠道编号</th>
				<th width="100">总数量</th>
				<th width="100">总金额</th>
				<th width="100">对账成功</th>
				<th width="100">成功金额</th>
				<th width="100">本地差错</th>
				<th width="100">渠道差错</th>
				<th width="100">处理状态</th>
			</tr>
		</thead>
		<tbody>
			#for(item : items)
				<tr target="id" rel="#(item.id)">
					<td>#(item.settleDate )</td>
					<td>#(item.channelCode )</td>
					<td>#(item.dataCount )</td>
					<td>#number(item.sumAmount.toDouble()/100, '##,###,##0.00')</td>
					<td>#(item.successCount )</td>
					<td>#number(item.successAmount.toDouble()/100, '##,###,##0.00')</td>
					<td>#(item.localErrorCount )</td>
					<td>#(item.channelErrorCount )</td>
					<td>#(item.processStatus )</td>
				</tr>
			#end
		</tbody>
	</table>
	</div>
	
	#include("/include/page.html")

</div>
